package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 我的佣金bean
 *
 * @author fengzhen
 * @version v1.0, 2018/5/15
 */
public class MyBrokerageBean implements Parcelable{
    /**
     * totalAmount : 0
     * balance : 99.59
     * putForward : 2.4
     */

    private double totalAmount;
    private double balance;
    private double putForward;

    protected MyBrokerageBean(Parcel in) {
        totalAmount = in.readDouble();
        balance = in.readDouble();
        putForward = in.readDouble();
    }

    public static final Creator<MyBrokerageBean> CREATOR = new Creator<MyBrokerageBean>() {
        @Override
        public MyBrokerageBean createFromParcel(Parcel in) {
            return new MyBrokerageBean(in);
        }

        @Override
        public MyBrokerageBean[] newArray(int size) {
            return new MyBrokerageBean[size];
        }
    };

    public double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public double getPutForward() {
        return putForward;
    }

    public void setPutForward(double putForward) {
        this.putForward = putForward;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeDouble(totalAmount);
        dest.writeDouble(balance);
        dest.writeDouble(putForward);
    }
}
